package com.ccl.iot.views;

import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.widget.PopupWindow;
import android.widget.RelativeLayout;

public class CustomPopupWindow extends PopupWindow {
	
	public CustomPopupWindow(Context context) {
		// 设置外部可点击
		this.setOutsideTouchable(true);

		// 设置弹出窗体的宽和高
		this.setHeight(RelativeLayout.LayoutParams.WRAP_CONTENT);
		 this.setWidth(RelativeLayout.LayoutParams.MATCH_PARENT);

		// 设置弹出窗体可点击
		this.setFocusable(true);

		// 设置弹出窗体的背景
		ColorDrawable dw = new ColorDrawable(0xffffff);
		this.setBackgroundDrawable(dw);

	}
	
}
